using System.Configuration;
using MySql.Data.MySqlClient;

public static class SqlAccess
{
    // 创建新的连接方法
    public static MySqlConnection CreateConnection()
    {
        return new MySqlConnection(ConfigurationManager.ConnectionStrings["MySqlConnection"].ConnectionString);
    }
}